--[[Salvo_Starly[Salvy].Thingy_2019.5]]-- --[[Project Name: SB2 dedth bootleg]]-- instantdie=true plr=game:GetService("Players").Salvo_Starly chr=plr.Character shards=25 function create(ty) return function(data) local obj = Instance.new(ty) for k, v in pairs(data) do if type(k) == 'number' then v.Parent = obj else obj[k] = v end end return obj end end ArtificialHB=create("BindableEvent"){ Parent=script, Name="Heartbeat"} script:WaitForChild("Heartbeat") frame=0.0166666666666666667 tf=0 allowframeloss=false tossremainder=false lastframe=tick() script.Heartbeat:Fire() game:GetService("RunService").Heartbeat:connect(function(s,p) tf=tf+s if tf >=frame then if allowframeloss then script.Heartbeat:Fire() lastframe=tick() else for i=1,math.floor(tf/frame) do script.Heartbeat:Fire() end lastframe=tick() end if tossremainder then tf=0 else tf=tf-frame*math.floor(tf/frame) end end end) function swait(num) if num==0 or num==nil then ArtificialHB.Event:wait() else for i=0,num do ArtificialHB.Event:wait() end end end function NoOutline(Part) Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface=10,10,10,10,10,10 end function parts(Par,name,size,color,mat,ref,tra) local part=create("Part"){ Parent=Par, Name=name, Size=size, CanCollide=false, Anchored=false, BrickColor=BrickColor.new(color), Material=mat, Reflectance=ref, Transparency=tra} --Position=Torso.Position} NoOutline(part) part:BreakJoints() return part end function meshs(Par,name,scale,mtype,id) local mesh=create("SpecialMesh"){ Parent=Par, Name=name, Scale=scale, MeshType=mtype} if id~="" then mesh.MeshId="rbxassetid://"..id end return mesh end function sounds(Par,id,vol,pit,remove) local sound=create("Sound"){ Parent=Par, SoundId="rbxassetid://"..id, Volume=vol, PlaybackSpeed=pit, PlayOnRemove=remove} sound:Play() game:GetService("Debris"):AddItem(sound,10) return sound end function getN(name) c = {} for i,v in pairs(game:GetService("Players"):GetChildren()) do if v.Name:sub(1,name:len()):lower() == name:lower() then return v end end return c end function SB2belike(head,torso) local lal=false --chr:BreakJoints() swait() local ref=parts(head.Parent,"ref",Vector3.new(),"Bright blue","SmoothPlastic",0,1) ref.Anchored=true ref.CFrame=CFrame.new(head.Position) sounds(ref,"1192402877",2,1,false) --1192402877 for _,c in pairs(head.Parent:GetDescendants()) do if c:IsA("BasePart")then if c:findFirstChildOfClass("SpecialMesh")then c:findFirstChildOfClass("SpecialMesh").TextureId="" end c.BrickColor=BrickColor.new("Bright blue") c.Anchored=true coroutine.resume(coroutine.create(function(aaa) for i=0,1,.02 do swait() aaa.Transparency=i end aaa.Transparency=1 lal=true end),c) elseif c:IsA("Decal") then coroutine.resume(coroutine.create(function(aaa) for i=0,1,.02 do swait() aaa.Transparency=i end aaa.Transparency=1 lal=true end),c) elseif c:IsA("Shirt") or c:IsA("Pants") or c:IsA("ShirtGraphic") then c:Destroy() end end repeat swait() until lal sounds(ref,"1192404085",2,1,false) --2676503368 cff=torso.Position for _,c in pairs(head.Parent:GetDescendants()) do if c:IsA("BasePart") and c.Name~="ref" then c:Destroy() end end for i=1,shards do local loldie=parts(ref,"die",Vector3.new(.05,1.2*head.Size.y,1.2*head.Size.z),"Bright blue","SmoothPlastic",0,.4) loldie.Anchored=true loldie.CFrame=CFrame.new(cff) meshs(loldie,"Mesh",Vector3.new(0,1,1),"Wedge","") coroutine.resume(coroutine.create(function(LOL) local kk1=(math.random(-100,100)/9)*head.Size.y local kk2=(math.random(-100,100)/9)*head.Size.y local ang1=math.random(-360,360) local ang2=math.random(-360,360) local ang3=math.random(-360,360) local aonf=(math.random(40,140)/5)*head.Size.y local aonf2=(math.random(-100,100)/9)*head.Size.y for i=0,1,.008 do swait() loldie.CFrame=loldie.CFrame:Lerp(CFrame.new(cff+Vector3.new(kk1,aonf2+i*aonf,kk2))*CFrame.Angles(ang1,ang2,ang3),.05) if i>=.5 then loldie.Transparency=loldie.Transparency+.01 end end loldie:Remove() end),loldie) end end --[[if instantdie then SB2belike() else chr:findFirstChildOfClass("Humanoid").Died:connect(SB2belike) end]] print'SwordBurst 2 Death, /e s/[plr]' plr.Chatted:connect(function(msg) if msg:sub(1,5)=="/e s/" then local v = getN(string.sub(msg,6)) local ss=v.Character if ss then local head=ss:findFirstChild("Head") local torso=ss:findFirstChild("Torso") or ss:findFirstChild("UpperTorso") if head and torso then SB2belike(head,torso) end end end end) --C8763